package ldh.text.io;

import org.junit.Test;

import java.awt.*;
import java.util.Arrays;

public class FontUtil {

    @Test
    public void fontList(){
        GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();
        Font[] fonts = graphicsEnvironment.getAllFonts();
        Arrays.stream(fonts).forEach(f->{
            System.out.println("font name: " + f.getFontName());
        });
    }
}
